package com.jcodecraeer.core.net;

import retrofit2.Call;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by huqs on 2017/4/11.
 */

public interface IAPIService {


    //登录
    @POST("member/index_do.php?fmdo=login&dopost=login")
    Call<String> login(@Query("userid") String userid, @Query("pwd") String pwd);
    //注销
    @POST("member/index_do.php?fmdo=login&dopost=exit")
    Call<String> logOut();
    //获取用户信息
    @POST("member/index.php")
    Call<String> userInfo();
    //获取帖子详情


    @GET("{url}")
    Call<String> postDetail(@Path("url") String rul);

}
